<%@ page language="java" import="java.util.*,net.sf.json.JSONArray,net.sf.json.JSONObject,com.sms.day_report.*" pageEncoding="ISO-8859-1"%>
<%@ page import="net.sf.json.*" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%  
        
		response.setContentType("text/html;charset=utf-8");		
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		request.setCharacterEncoding("UTF-8");
         List<Map> jlist = new ArrayList<Map>();
         jlist=Day_report.getallteacher();
      JSONArray json = new JSONArray(); 
      System.out.println(jlist.size());
			for (int i = 0; i < jlist.size(); i++) {
				
			Map map=jlist.get(i);	
			System.out.println(map);		
				JSONObject j = new JSONObject();
				j.put("mno",map.get("tno") );
				j.put("name", map.get("tname"));
				json.add(j);
				}
			 System.out.println(json);
out.println(json);	

%>

